package com.java.zhuiyun.api.jielongidiomlevel.service;

import com.java.zhuiyun.api.jielongidiomlevel.model.JieLongIdiomLevelModel;
import com.java.zhuiyun.common.errorCode.CommonException;
import com.java.zhuiyun.common.response.CommonResult;
import com.java.zhuiyun.util.pageUtil.PageRequest;
import com.java.zhuiyun.util.pageUtil.PageResult;

import java.util.List;

/**
 * @InterfaceName JieLongIdiomLevelService
 * @Description TODO 成语接龙关卡业务逻辑层 后台管理查询关卡、添加关卡、更新关卡信息、uni-app查询关卡
 * @Author 杨友朋
 * @Date 2023/9/13 9:05
 **/
public interface JieLongIdiomLevelService {
    /**
     * @param
     * @param id
     * @Author 杨友朋
     * @Description TODO 查询关卡
     * @Date 2023/9/13 10:53
     * @Return
     */
    PageResult selectLevel(PageRequest pageRequest, Integer id);

    /**
    * @Author 杨友朋
    * @Description TODO 添加关卡
    * @Date 2023/9/13 10:53
    * @Return
    * @param
    */
    CommonResult insertLevel(JieLongIdiomLevelModel jieLongIdiomLevel) throws CommonException;

    /**
     * @Author 杨友朋
     * @Description TODO 更新关卡信息
     * @Date 2023/10/12 10:54
     * @Return CommonResult
     * @param jieLongIdiomLevel
     */
    CommonResult updateLevel(JieLongIdiomLevelModel jieLongIdiomLevel);

    /**
     * @Author 杨友朋
     * @Description TODO uni-app全查所有关卡
     * @Date 2023/10/12 10:50
     * @Return CommonResult
     * @param
     */
    List<JieLongIdiomLevelModel> userSelectLevel();
}
